package com.crm.service.couponManager;

import com.crm.model.entity.couponManager.CouponIssued;
import com.crm.model.qo.orderManager.CustomerProductOrderQO;
import com.crm.model.vo.couponManager.CouponIssuedVO;
import com.crm.model.vo.orderManager.CustomerProductOrderVO;

import java.util.List;

/**
 * @Author renshaorong
 * @Date 2021/11/9
 */
public interface CouponIssuedDbService {

    /**
     * 条件筛选
     * @param couponIssued
     * @param order
     * @return
     */
    List<CouponIssuedVO> selectCouponIssuedPageList(CouponIssued couponIssued, String order);

    /**
     * 批量添加
     * @param couponIssuedList
     * @return
     */
    boolean insertBatch(List<CouponIssued> couponIssuedList);

    List<CustomerProductOrderVO> selectCustomerProductOrder(CustomerProductOrderQO customerProductOrderQO,String order);

    CouponIssued selectByCouponIdAndCustomerId(String couponId, String customerId1);

    Boolean updateCouponIssuedById(CouponIssued couponIssued);
}
